@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/goodsSku/goodsSku_add.js"]}){
<form id="goodsSkuForm" lay-filter="goodsSkuForm" class="layui-form model-form">
    <input name="id" type="hidden"/>
    <#pic boxid="skuPicBox" name="商品图片"  hiddenInput="skuPic" uploadButton="uploadPic"/>

    <div class="layui-form-item">
        <label class="layui-form-label">商品名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input    type="text" value="${goods.name}" class="layui-input" disabled />
            <input name="goodsId" id="goodsId" value="${goods.id!}" type="hidden"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">规格名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="skuName" name="skuName" placeholder="请输入规格名称" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">规格描述<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="skuDesc" name="skuDesc" placeholder="请输入规格描述" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">价格<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="price" name="price" type="number" placeholder="请输入价格" type="number" min="0.01" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">拼单价格<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="priceMerge" name="priceMerge" type="number" placeholder="请输入拼单价格" ype="number" min="0.01" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">成本<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="cost" name="cost" type="number" placeholder="请输入成本" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">库存<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="stock" name="stock" type="number" placeholder="请输入库存" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">重量(kg)<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="weight" name="weight" type="number" placeholder="请输入重量" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>


    <div class="layui-form-item text-center">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}